import cv2
image_Color=cv2.imread('car.jpeg')
print('显示彩色图像的属性:')
print('shape=',image_Color.shape)
print('size=',image_Color.size)
print('type=',image_Color.dtype)
image_Gray=cv2.imread('car.jpeg',cv2.IMREAD_GRAYSCALE)
print('shape=',image_Gray.shape)
print('size=',image_Gray.size)
print('type=',image_Gray.dtype)
